import 'dart:ui';

import 'package:get/get.dart';
import 'package:nft_shop/login/controller/logic_controller.dart';
import 'package:nft_shop/login/controller/user_controller.dart';
import 'package:nft_shop/main.dart';

import '../model/models.dart';
import 'my_invite_conteroller.dart';

class MyConteroller extends GetxController {
  static final MyPageID = "MyPageID";

  int sectionIndex = 1;
  int rowIndex = 0;
  VoidCallback? onPressed;

  static MyConteroller get to => Get.find<MyConteroller>();

  @override
  void onInit() {
    // TODO: implement onInit
    super.onInit();
    Get.lazyPut(()=>MyInviteConteroller());
  }

  @override
  void onReady() {
    // TODO: implement onReady
    super.onReady();
  }

  @override
  void onClose() {
    // TODO: implement onClose
    super.onClose();
  }

  refreshData(){
    eventBus.fire("mySelectType");
  }

  //获取数据
  void getDataList() async {
    ///更新用户信息
    LoginLogic.to.getUserInfoData();
    refreshData();
  }
}
